home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / DataSave / Sources / Commands.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1016 b   |  40 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef COMMANDS_H
  5. #define COMMANDS_H
  6.  
  7. //==========================================================
  8. #ifndef FWCMD_H
  9. #include "FWCmd.h"            // FW_CCommand
  10. #endif
  11.  
  12. //==========================================================
  13. class CDataSaveContent;
  14. class CPizza;
  15.  
  16. //==========================================================
  17. class CPizzaCommand : public FW_CCommand
  18. {
  19. public:
  20.     FW_DECLARE_AUTO(CPizzaCommand)
  21.     
  22.                     CPizzaCommand(Environment* ev, 
  23.                                     ODCommandID id,
  24.                                     FW_CFrame* frame,
  25.                                     CDataSaveContent* content,
  26.                                     FW_CPoint position);
  27.     virtual         ~CPizzaCommand();
  28. protected:
  29.     // overrides
  30.     virtual void     DoIt(Environment* ev);
  31.     virtual void     UndoIt(Environment* ev);
  32.     virtual void     RedoIt(Environment* ev);
  33.     virtual void     FreeRedoState(Environment* ev);
  34. private:
  35.     CDataSaveContent*    fContent;
  36.     CPizza*                fPizza;
  37. };
  38.  
  39. //==========================================================
  40. #endif